<?php

return array(
    // 开启路由
    'URL_ROUTER_ON' => true,
    //token密钥
    'TOKEN_KEY' => '123456ssss',
    //生成验证码位数
    'VCODE_LENGTH' => 6,
    //验证码类型
    'VCODE_TYPE' => array(
        'REGISTER' => 1, //注册
        'FINDPASSWORD' => 2//找回密码
    ),
    'URL_PARAMS_BIND' => false,
    //验证码状态
    'VCODE_STATUS' => array(
        'VALID' => 1, //有效
        'INVALID' => 2, //无效
        'INEXISTENCE' => 3 //不存在
    ),
    //验证手机验证码返回代码
    'VERIFY_VCODE' => array(
        'RIGHT' => 1, //正确
        'ERROR' => 3, //错误
        'INVALID' => 2//验证码已过期
    ),
    //登陆状态码
    'LOGIN_STATUS' => array(
        'SUCCESS' => 1, //登陆成功
        'PASSWORD_ERROR' => 2, //密码错误
        'INEXISTENCE' => 3 //账号不存在
    ),
    'USER_SEARCH_RECORD_NUM' => 4,
    //积分名称
    'CREDIT_NAME' => array(
        'PUBLISH_COUPON_REMARK' => '发布优惠券时填写备注+5积分',
        'COUPON_WAS_RECEIVED' => '发布的优惠券被领取'
    ),
    //积分值
    'CREDIT_VALUE' => array(
        'PUBLISH_COUPON_REMARK' => 5, //发布优惠券时填写备注
    ),
    //优惠券状态
    'COUPON_STATUS' => array(
        'RECEIVE' => 1, //已领取
        'USE' => 2, //已使用
        'PUBLISH' => 3, //已发布
        'HAS_BEEN_RECEIVED' => 4, //发布已被领取
    ),
    'USER_UPLOAD_AVATAR' => './Uploads/Avatar/',
);
